package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysGoods;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author hhk
 * @version 1.0
 * @ClassName SysGoodsServiceApi
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/12/5 10:40
 */
public interface SysGoodsServiceApi {
    /**
     * @description: 后端分页
     * @param: [sysGoods]
     * @return: void
     * @author hhk
     * @date: 2024/12/5 10:40
     */
    @PostMapping(value = "/sysGoods/findSysGoodsPaginationList")
    public PagedResponse<SysGoods> findSysGoodsPaginationList(@RequestBody SysGoods sysGoods,@RequestParam  Integer pageNum,@RequestParam Integer pageSize);
    /**
     * @description: 导出
     * @param: []
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysGoods>
     * @author hhk
     * @date: 2024/12/5 10:43
     */
    @PostMapping(value = "/sysGoods/findSysGoodsList")
    public List<SysGoods> findSysGoodsList();
}
